package com.example.gustavo.hello.activity;

import android.app.Activity;
import android.app.ActivityManager;
import android.os.Bundle;
import android.os.Looper;
import android.os.MemoryFile;
import android.support.v4.widget.DrawerLayout;
import android.text.TextUtils;

import com.example.gustavo.hello.R;
import com.loopj.android.http.AsyncHttpResponseHandler;
import com.loopj.android.http.ResponseHandlerInterface;

import java.io.InputStream;

/**
 *
 * Created by gustavo on 2015/3/3.
 */
public abstract class BaseActivity extends Activity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);



        setContentView();
        initView();
        initData();
        initEvent();

    }

    protected abstract void setContentView();
    protected abstract void initView();
    protected abstract void initData();
    protected abstract void initEvent();
}
